<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>后台商品添加</title>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="css/mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>

<!--添加商品-->
<div class="container">
    <form class="form-inline" method="post">
        <table class="table table-bordered table-striped">
            <tbody>
            <tr>
                <td colspan="2" class="bg-info">添加商品</td>
            </tr>
            <tr>
                <td>商品ID：</td>
                <td><input name="id" type="text" class="form-control" placeholder="请输入商品id"></td>
            </tr>
            <tr>
                <td>商品类型：</td>
                <td>

                    <select name="type" class="form-control">
                        <c:forEach items="${sessionScope.typeAllList}" var="type">
                            <option>${type.type}</option>
                        </c:forEach>
                    </select>

                </td>
            </tr>
            <tr>
                <td>商品名称：</td>
                <td><input name="name" type="text" class="form-control" placeholder="请输入商品名称"></td>
            </tr>
            <tr>
                <td>商品价格：</td>
                <td><input name="price" type="text" class="form-control" placeholder="请输入商品价格"></td>
            </tr>
            <tr>
                <td>商品数量：</td>
                <td><input name="quantity" type="text" class="form-control" placeholder="请输入商品数量"></td>
            </tr>
            <tr>
                <td>商品图片：</td>
                <td>
                    <div class="form-group">
                        <input name="image" type="file" id="exampleInputFile">
                    </div>
                </td>
            </tr>
            <tr>
                <td>商品描述：</td>
                <td><textarea name="description" class="form-control" rows="3"></textarea></td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input formaction="${pageContext.request.contextPath}/commodityServlet?demand=add" class="btn btn-default" type="submit" value="添加">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input class="btn btn-default" type="reset" value="重置"></td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
